home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
C64
/
H-Graphics
/
(c)h4.d64
/
Kgallery
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2007-02-04
|
3KB
|
84 lines
5 REM ******************************** KOALAPAINTER PICTURE GALLERY V1
10 REM MODULE #1, REQUIRES MODULE #2- "U"
15 REM -COMMODORE 64 & KOALA PAD (TM) BY ROGER D. BURGE, TPUG #2667
20 REM LONDON,ONTARIO, CANADA & KOALA TECHNOLOGIES CORP, USA
25 REM REQUIRES "KOALA DISK MENU" SYSTEM BY ROGER D. BURGE
30 REM SAVE AS "[203]GALLERY" ("[203]" IS A SHIFTED "K")
35 REM AUGUST, 1984 FOR INFORMATION OR SUGGESTIONS-
40 REM CONTACT: R. D. BURGE ADDRESS AVAILABLE FROM TPUG
45 REM "KOALA PAD" IS A REG TRADE MARK OF KOALA TECHNOLOGIES CORP.
50 REM ********************************
55 IFQTHEN295
60 GOSUB175:OPENF,G,F,"I0":D=PEEK(CP+K)+128
65 DIMT$(F1),TT$(F1):C=W:OPENG,G,G,":":INPUT#F,EN$
70 INPUT#G,DN$:IFEN$<>"00"THENCLOSEG:CLOSEF:A=18:GOTO130:YY=19
75 INPUT#G,T$(C):IFST=STHEN85
80 C=C+W:IFC<F1+KTHEN75
85 CLOSEG:CLOSEF:M=C-W:GOSUB155
90 PRINT"";:S$=" ":R$=""
95 FORC=ATOA+F:H=X*-(H=Z)-Z*(H=X):POKECP,H
100 PRINT""R$RIGHT$(STR$(C),K)" "MID$(T$(C),K)RIGHT$(S$,F-LEN(MID$(T$(C),K)))
105 NEXT:PRINTR$"[158]17[160]CHANGE DISKS ":PRINTR$"[159]18 UPDATE GALLERY "
110 PRINTR$"[158]19 LEAVE GALLERY "
115 YY=INT(PEEK(PY)/13.4210526):Y=G*YY+SS:IFY=SSTHENY=MX:YY=19
120 POKEV+W,Y:POKEV+X,Y:IF(PEEK(56321)=251)OR(PEEK(56321)=247)THENA=YY:GOTO130
125 GOTO115
130 IFA=18THENT$(.)="U":GOTO250
135 IFA=17THENRUN
140 IFA=19THENT$(.)="[139]":GOTO250
145 IFT$(A)=""THENGOSUB230:GOTO115
150 GOTO260
155 PRINT"[155][160][160][160][160] [213][192][192][192][192][192][192][160]MENU STATUS: [192][192][192][192][192][192][201] "
160 PRINT" [202][192][146]"DN$"[155][192][203] "
165 PRINT"PRESS BUTTON #2 TO RETURN FROM PICTURE"
170 PRINT" OPTIONS: ":RETURN
175 F=15:MX=234:G=8:K=2:S=66:F1=16:CP=646:CR=54272:H=3:X=3:Z=7
180 W=1:FORT=832TO853:READA:POKET,A:NEXT:FORT=854TO895:POKET,.:NEXT:V=53248
185 FORT=896TO919:READA:POKET,A:NEXT:FORT=920TO959:POKET,.:NEXT:POKE2041,14
190 FORT=49154TO49317:READA:POKET,A:NEXT:A=W
195 POKEV+32,.:SS=82:POKEV+33,W:PRINT"[155][147]":POKEV+33,.
200 PRINT"[142] KOALAPAINTER PICTURE GALLERY[160] [160][160][160][160]";
205 FORT=1064TO1984STEP40:POKET,224:POKET+39,224:NEXT
210 PRINT"BY ROGER D. BURGE & KOALA TECHNOLOGIES";
215 FORT=CRTOCR+24:POKET,.:NEXT:POKE2040,13:POKEV+F1,.:POKEV+39,13
220 Y=MX:PY=54298:POKEV+X,Y:POKEV+40,13:POKEV+K,65
225 POKEV+23,.:POKEV+29,X:POKEV+28,.:POKEV,255:POKEV+W,Y:POKEV+21,X:RETURN
230 PRINT"[153] SELECTION UNAVAILABLE![160]":FORT=.TO1999:NEXT
235 PRINT""DN$:RETURN
240 DATA16,.,.,48,.,.,112,.,.,255,255,255,255,255,255,112,.,.,48,.,.,16
245 DATA.,.,8,.,.,12,.,.,14,255,255,255,255,255,255,.,.,14,.,.,12,.,.,8
250 POKEV+21,.:POKEV+29,.:PRINT"[146][144][147]L[207]"CHR$(34)T$(.)CHR$(34)",8"
255 POKE198,5:POKE631,13:POKE632,82:POKE633,85:POKE634,78:POKE635,13:END
260 Q=W:PRINT"[153] LOADING: "
265 PRINT""R$MID$(T$(A),K):OPENF,G,F:OPENG,G,G,T$(A)
270 INPUT#F,EN$:IFEN$<>"00"THENER=W
275 CLOSEG:CLOSEF:IFER=.THEN290
280 PRINT" NO PICTURE-UPDATE MENU ":POKEV+32,13
285 FORT=.TO4999:NEXT:A=18:GOTO130
290 LOADT$(A),G,W:END
295 POKEV+21,.:SYS49154
300 WAIT56321,251,255
305 POKEV+17,PEEK(V+17)AND223
310 POKEV+22,PEEK(V+22)AND239:POKEV+24,(PEEK(V+24)AND240)OR4:PRINT"[147]":RUN
315 DATA173,17,208,41,239,141,17,208
320 DATA162,127,160,64,32,156,192,162
325 DATA4,160,.,32,161,192,162,131
330 DATA160,39,32,114,192,162,131,160
335 DATA40,32,156,192,162,216,160,.
340 DATA32,161,192,162,135,160,15,32
345 DATA114,192,173,16,135,141,33,208
350 DATA173,17,208,9,34,141,17,208
355 DATA173,22,208,41,223,9,16,141
360 DATA22,208,173,24,208,9,8,141
365 DATA24,208,162,96,160,.,32,156
370 DATA192,162,32,160,.,32,161,192
375 DATA162,127,160,63,32,114,192,173
380 DATA17,208,9,16,141,17,208,96
385 DATA142,1,192,140,.,192,160,.
390 DATA177,251,145,253,165,252,205,1
395 DATA192,208,8,165,251,205,.,192
400 DATA208,1,96,230,251,208,2,230
405 DATA252,230,253,208,227,230,254,76
410 DATA122,192,134,252,132,251,96,134
415 DATA254,132,253,96